<?php
require("./gigJunkieXmlParser.php");

$xmlParser = new gigJunkieXmlParser('london o2');

/**
 * Try to fetch some events
 */
if (($events = $xmlParser->fetchEvents()) === false) {
    /**
     * There was a problem either fetching or parsing the XML
     */
    print("Error! " . $xmlParser->fetchErrorMessage());
    exit;
}

/**
 * Successfully fetched and parsed the events XML. Display the results.
 */
print_r($events);

